No Right Click Script

Below is the script. Place the first part inside the <head> and </head> tags. I'm afriad it only works in the newest browsers. To see a demonstration, try right clicking anywhere on this page.

****If You Can't Get the script to work, drop me a line at [email protected] and I'll see what I can do.****


<SCRIPT LANGUAGE="JavaScript1.1">
<!--
Beginfunction right(e) {
var msg = "Sorry, you don't have permission to right-click.";
if (navigator.appName == 'Netscape' && e.which == 3) {
alert(msg); // Delete this line to disable but not alert user
return false;
}
elseif (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(msg); // Delete this line to disable but not alert user
return false;
}
return true;
}
document.onmousedown = right;
// End -->
</SCRIPT>